package com.cusc.module_apply.mvvm.ui.fragment;

import android.view.View;

import androidx.lifecycle.ViewModelProvider;

import com.cusc.module_apply.BR;
import com.cusc.module_apply.R;
import com.cusc.module_apply.databinding.FragApplyMainBinding;
import com.cusc.module_apply.factory.ApplyViewModuleFactory;
import com.cusc.module_apply.mvvm.vm.ApplyFragMainViewModel;
import com.tcgroup.phone.base_core.BaseApplication;
import com.tcgroup.phone.base_core.framework.mvvm.fragment.BaseMvvmRefreshFragment;
import com.tcgroup.phone.base_core.widget.SSmartRefreshLayout;

/**
 * 作者: wangfei
 * 创建时期: 2020/3/28.
 * 包名: com.cusc.module_apply.mvvm.ui.fragment
 * 类名: OSAndroidMvvm
 */
public class ApplyMainFragment extends BaseMvvmRefreshFragment<FragApplyMainBinding, ApplyFragMainViewModel> {



    public static ApplyMainFragment newInstance() {
        return new ApplyMainFragment();
    }

    @Override
    public SSmartRefreshLayout getRefreshLayout() {
        return mBinding.smartRefreshLayout;
    }

    @Override
    public Class<ApplyFragMainViewModel> onBindViewModel() {
        return ApplyFragMainViewModel.class;
    }

    @Override
    public ViewModelProvider.Factory onBindViewModelFactory() {
        return ApplyViewModuleFactory.getInstance(BaseApplication.getInstance());
    }

    @Override
    public void initViewObservable() {

    }

    @Override
    public int onBindVariableId() {
        return BR.model;
    }

    @Override
    public int onBindLayout() {
        return R.layout.frag_apply_main;
    }

    @Override
    public String getToolbarTitle() {
        return null;
    }

    @Override
    public void initView(View view) {

    }

}
